package com.jic.member.constant.enums;

public enum TripNodeTemplateTypeEnums {
	START(0,"开始/结束"),
    CROWD_CIRCLE(1,"人群圈定"),
    TRIGGERING_CONDITIONS(2,"触发条件"),
    PERFORM_ACTION(3,"执行动作"),
	;

	private Integer name;
	private String desc;
	public Integer getName() {
		return name;
	}
	public void setName(Integer name) {
		this.name = name;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}

	private TripNodeTemplateTypeEnums(Integer name, String desc) {
		this.name = name;
		this.desc = desc;
	}

	public static TripNodeTemplateTypeEnums getByName(Integer name){
		TripNodeTemplateTypeEnums[] values = TripNodeTemplateTypeEnums.values();
		for(TripNodeTemplateTypeEnums value : values){
			if(value.getName().equals(name)){
				return value;
			}
		}
		return null;
	}

}
